package com.gljx.web.service;

import com.gljx.web.Entity.CarRefuel;
import com.gljx.web.Entity.CarRefuelEntry;

import java.util.List;
import java.util.Map;

public interface CarRefuelService {
	
	Map<String, Object> selectPageCount(String psql);

    Map<String, Object> selectPage(int pindex, String psql, int psize);
    
    /**
     * 获取最大编号
     * @return
     */
    String selectFnumber(String fnuber);
    
    /**
     * 添加驾校车辆加油登记
     * @param carRefuel
     * @return
     */
    int addCarRefuel(CarRefuel carRefuel,String [] carId,String [] fseq,String [] cfcartype,
    		String [] cftrainid,String [] cfteamid,String [] cfgroupid,String [] cfkemu,
    		String [] cfqty,String [] cfoilspecid,String [] cfdesc,String [] cfdepname);
    
    /**
     * 根据fid删除驾校车辆加油登记
     * @param fid
     * @return
     */
    int deleteCarRefuelByFid(String fid);
    /**
     * 根据fid查找驾校加油登记信息
     * @param fid
     * @return
     */
    CarRefuel selCarRefuelByFid(String fid);
    
    /**
     * 审核
     * @param carRefuel
     * @return
     */
    int updateCarRefuelByFid(CarRefuel carRefuel);
    
    /**
     * 修改驾校车辆加油登记
     * @param carRefuel
     * @return
     */
    int updateCarRefuel(CarRefuel carRefuel,String [] carId,String [] fseq,String [] cfcartype,
    		String [] cftrainid,String [] cfteamid,String [] cfgroupid,String [] cfkemu,
    		String [] cfqty,String [] cfoilspecid,String [] cfdesc,String [] cfdepname);

    /**
     * 查询驾校车辆加油
     * @param fnumber
     * @param fdescription
     * @param carNumber
     * @param beginTime
     * @param endTime
     * @return
     */
    List<CarRefuel> selectCarRefuel(String companyId,String fnumber, String fdescription, String carNumber, String beginTime, String endTime);


    List<String> RefuelRegisterImportExcel(List<List<Object>> list, String fileName);

    /**
     * 通过车名查询
     * @param carName
     * @return
     */
    List<CarRefuelEntry> selCarRefuelEntryBycarName(String carName);
}
